import Vue from 'vue'
import App from './App.vue'
import router from './router'

Vue.config.productionTip = false
import './plugins/vant.js'

import axios from 'axios'
axios.defaults.baseURL = 'http://www.liulongbin.top:3005/'
Vue.prototype.$http = axios 

Vue.filter('formatDate',function(time){
  var date = new Date(time)
  var y = date.getFullYear()
  var m = date.getMonth()+1
  var d = date.getDay()
  return y+'-'+m+'-'+d
})


import store from './store.js'

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
